﻿/*
* 此文件封装统一的orm操作
*/
#pragma once
#ifndef XL_XEXPAND_DWEBX_LIB_SQL_H
#define XL_XEXPAND_DWEBX_LIB_SQL_H
#include "pch.h"

//数据库的抽象类
class WoDatabaseOrm {
public:
	//void* m_sqlPtr=nullptr;
	//WoSqlOrmType m_devicesType;
public:
	virtual ~WoDatabaseOrm() = default;

	//打开数据库
	virtual void open() = 0;

	// 连接到数据库
	virtual void connect() = 0;
	
	// 执行查询
	virtual void query(const CXTextA&) = 0;

};

class WoMysqlOrm :public WoDatabaseOrm
{
public:
protected:
private:
};

class WoSqliteOrm :public WoDatabaseOrm
{
public:
protected:
private:
};

#endif